awayTeam

  • function
 

Informs Bookshelf.js that the awayTeam property will be a Team model with an id that matches the awayTeamId specified in the query.

game.awayTeam()

Informs Bookshelf.js that the awayTeam property will be a Team model with an id that matches the awayTeamId specified in the query.